.class Lcom/waiqin365/lightapp/order/aa;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 9

    const/high16 v2, 0x41800000    # 16.0f

    const/4 v5, 0x0

    const/4 v7, 0x0

    const/4 v6, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->dismissProgressDialog()V

    iget v0, p1, Landroid/os/Message;->what:I

    sparse-switch v0, :sswitch_data_0

    :cond_0
    :goto_0
    return-void

    :sswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    move-object v1, v0

    check-cast v1, Lcom/waiqin365/lightapp/order/b/a/s;

    iget-object v0, v1, Lcom/waiqin365/lightapp/order/b/a/s;->c:Ljava/lang/String;

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    const v3, 0x7f08013b

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    :cond_1
    invoke-virtual {v1}, Lcom/waiqin365/lightapp/order/b/a/s;->b()Z

    move-result v3

    if-eqz v3, :cond_3

    const-string/jumbo v3, "1"

    iget-object v4, v1, Lcom/waiqin365/lightapp/order/b/a/s;->b:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->a(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, v1, Lcom/waiqin365/lightapp/order/b/a/s;->d:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, v1, Lcom/waiqin365/lightapp/order/b/a/s;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->d(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Landroid/widget/LinearLayout;

    move-result-object v8

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->b(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, v1, Lcom/waiqin365/lightapp/order/b/a/s;->d:Ljava/util/List;

    const-string/jumbo v3, "#808080"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    const-string/jumbo v4, "#1a1a1a"

    invoke-static {v4}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v5

    iget-object v4, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->c(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Lcom/waiqin365/lightapp/order/c/a;

    move-result-object v4

    if-nez v4, :cond_2

    :goto_1
    move v4, v2

    invoke-static/range {v0 .. v7}, Lcom/waiqin365/lightapp/chexiao/d/a;->a(Landroid/content/Context;Ljava/util/List;FIFIZLjava/util/LinkedHashMap;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v8, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_0

    :cond_2
    iget-object v4, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->c(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Lcom/waiqin365/lightapp/order/c/a;

    move-result-object v4

    iget-object v7, v4, Lcom/waiqin365/lightapp/order/c/a;->ad:Ljava/util/LinkedHashMap;

    goto :goto_1

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->showToast(Ljava/lang/String;)V

    goto :goto_0

    :sswitch_1
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/order/b/a/u;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/order/b/a/u;->b()Z

    move-result v1

    if-eqz v1, :cond_6

    iget-object v1, v0, Lcom/waiqin365/lightapp/order/b/a/u;->b:Ljava/lang/String;

    if-eqz v1, :cond_5

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/u;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->e(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/order/OrderDetailActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "orderNo"

    iget-object v0, v0, Lcom/waiqin365/lightapp/order/b/a/u;->d:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "isFromPush"

    invoke-virtual {v1, v0, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "isConfirmOrder"

    invoke-virtual {v1, v0, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "picPaths"

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->f(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v0, "menuId"

    const-string/jumbo v2, ""

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->h(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->g(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/base/db/jxccache/f;->h(Ljava/lang/String;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->i(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->g(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/base/db/jxccache/f;->f(Ljava/lang/String;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    iget-object v2, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    const v3, 0x7f080718

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->showToast(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->j(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Z

    move-result v0

    if-eqz v0, :cond_4

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v2, "type"

    sget-object v3, Lcom/fiberhome/gaea/client/a/e;->b:Lcom/fiberhome/gaea/client/a/e;

    invoke-virtual {v0, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const-class v3, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesProcessSelectActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v3, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordDetailActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v3, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v3, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v3

    const-string/jumbo v4, "reinit_activity"

    invoke-virtual {v3, v4, v0, v2}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    :goto_2
    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    const-string/jumbo v2, "close_activity"

    const-class v3, Lcom/waiqin365/lightapp/order/OrderCartActivity;

    invoke-virtual {v0, v2, v7, v3}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    const-string/jumbo v2, "close_activity"

    const-class v3, Lcom/waiqin365/lightapp/order/OrderDetailActivity;

    invoke-virtual {v0, v2, v7, v3}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->finish(Z)V

    goto/16 :goto_0

    :cond_4
    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    const-string/jumbo v2, "reinit_activity"

    const-class v3, Lcom/waiqin365/lightapp/order/OrderListActivity;

    invoke-virtual {v0, v2, v7, v3}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    goto :goto_2

    :cond_5
    iget-object v1, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->a(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    iget-object v0, v0, Lcom/waiqin365/lightapp/order/b/a/u;->c:Ljava/lang/String;

    invoke-static {v1, v0, v5}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_6
    iget-object v1, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/order/OrderInfoActivity;->a(Lcom/waiqin365/lightapp/order/OrderInfoActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/order/aa;->a:Lcom/waiqin365/lightapp/order/OrderInfoActivity;

    iget v0, v0, Lcom/waiqin365/lightapp/order/b/a/u;->a:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :sswitch_data_0
    .sparse-switch
        0x3f0 -> :sswitch_1
        0x401 -> :sswitch_0
    .end sparse-switch
.end method
